var Mock = require('mockjs');

exports.response = function(req, res) {
  return Mock.mock({
    "msg": "OK", 
    "code": 0, 
    "data": {
        "field": [
            {
                "name": "产品ID", 
                "id": "productID"
            }, 
            {
                "name": "产品名称", 
                "id": "productName"
            }, 
            {
                "name": "数据类型", 
                "id": "dataType"
            }, 
            {
                "name": "数据状态", 
                "id": "dataState"
            }, 
            {
                "name": "开始日期", 
                "id": "startDate"
            }, 
            {
                "name": "截止日期", 
                "id": "closingDate"
            }, 
            {
                "name": "数据频率", 
                "id": "dataFrequency"
            }
        ], 
        "list|1-103": [
            {
                "productID": "@id", 
                "productName": "@ctitle", 
                "dataType|1": ["持仓","净值"], 
                "dataState|1": [1,0], 
                "startDate": "@date('yyyy-MM-dd')", 
                "closingDate": "@date('yyyy-MM-dd')", 
                "dataFrequency|1": ["日","月"]
            }
        ]
    }
})
}